package com.design.mode.builder;

import org.junit.jupiter.api.Test;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-04-03 17:02:02
 */
public class BuilderTest {

    @Test
    public void test1() {
        SimpleBuilder s1 = new SimpleBuilder();
        s1.setName("Hello");

        Director director = new Director(s1);
        Product product = director.builder();

        System.out.println("product = " + product);
    }
}
